<template>
<div>
<input type = " radio" v-model=" activeComponent" value =" ActiveComl" >ActiveComl
input type =" radio" v-model=" activeComponent" value =" ActiveCom2" >ActiveCom2
component :is="activeComponent" ></component>
</div>
</template>
<script>
import ActiveComl from "./components/ActiveComl. vue";
import ActiveCom2 from"./components/ActiveCom2.vue";
export default(){
    date(){
        return{
            activeComponent:"ActiveCom2"
        };
    },
    //注册组件
    components：{
        ActiveComl,
        ActiveCom2,
    },
};
</script>
<style scoped>
</style>